Regsvr32 ÷ʹϢ˵ 

ЩעĶӺǶ (OLE) ؼ綯̬ӿ (DLL) ļ ActiveX ؼ (OCX) ļʹ Regsvr32  (Regsvr32.exe) עȡעᡣ

Regsvr32.exe ÷ 

RegSvr32.exe ѡ Regsvr32 [/u] [/n] [/i[:cmdline]] dllname 

   /u - Unregister server<BR/> 
   /i - Call DllInstall passing it an optional [cmdline]; 
        when used with /u calls dll uninstall 
   /n - do not call DllRegisterServer; this option must 
        be used with /i 

ʹ Regsvr32.exe ʱ᳢Լظ DLLSelfRegister ˳ԳɹRegsvr32.exe ʾһָʾɹĶԻ˳ʧܣRegsvr32.exe ᷵һϢпܻһ Win32 롣Ҫ鿴 Win32 бμ Microsoft Web վ㣺  
http://msdn.microsoft.com/library/en-us/netdir/adsi/win32_error_codes.asp  

磬Ҫֶע Sample.ocx ActiveX ؼ MS-DOS ʾ  
c:\regsvr32.exe sample.ocx 

Regsvr32.exe Ϣ 

б RegSvr32 ϢͿܵԭ  

Unrecognized flag:/invalid_flag 

ı־򿪹ЧıеġRegsvr32.exe ÷һڣ  

No DLL name specified. 

δ .dll ļıеġRegsvr32.exe ÷һڣ  

Dllname was loaded, but the DllRegisterServer or DllUnregisterServer entry point was not found. 

Dllname  .dll  .ocx ļ磬 regsvr32 wjview.exe ͻɸôϢ  

Dllname is not an executable file and no registration helper is registered for this file type. 

Dllname ǿִļ.exe.dll  .ocx磬 regsvr32 autoexec.bat ͻɸôϢ 

Dllname was loaded, but the DllRegisterServer or DllUnregisterServer entry point was not found. 

Dllname δڴп𻵵 Dllname 汾뿼ʹ Pview ļɾ  

Dllname is not self-registerable or a corrupted version is in memory. 

磬 regsvr32 icwdial.dll ͻ᷵ظôϢΪ Icwdial.dll ļעᡣڴ𻵵 Dllname 汾볢ȡļԭʼ汾е Windows NTҪʹ Microsoft Windows NT Server 4.0 Դ߰ е Kill  Pview ߡйϢ뵥Բ鿴 Microsoft ֪ʶ£  
197155 ֹ  

OleInitialize failed (or OleUninitialize failed). 

Regsvr32 ȳʼ COM ⣬Ȼܵ COM ⺯ڹرʱԸÿĳʼ COM гʼʼĳʧܣͻЩϢ磬Ole32.dll ļѾ𻵣汾  

LoadLibrary("Dllname") failed.GetlastError returns 0x00000485 

 Winerror.h У0x00000485 = 1157 (ERROR_DLL_NOT_FOUND)ʾҲиӦóĳļ磬 regsvr32 missing.dll Ҳ Missing.dll ļͻ᷵ظôϢ  

LoadLibrary("Dllname") failed.GetLastError returns 0x00000002 

 Winerror.h У0x00000002 = 2 (ERROR_FILE_NOT_FOUND)ʾϵͳҲָļ֮ϵͳҲص DLL磬 regsvr32 icwdial.dllʱȱ Tapi32.dllͻ᷵ظôϢ  

LoadLibrary("dskmaint.dll") failed.GetLastError returns 0x000001f 

 Winerror.h У0x000001f = 31 (ERROR_GEN_FAILURE)ʾӵϵͳϵ豸ע Win16 .dll ļͻᷢ磬 regsvr32 dskmaint.dll ᷵ظôϢ  

DllRegisterServer (or DllUnregisterServer)in Dllname failed.شǣַ 

 Winerror.h ַ  
Regsvr32.exe  
RegSvr32.exe  Kernel32.dllUser32.dll  Ole32.dll ļ Windows NT У Msvcrt.dll  Advapi32.dll ļRegsvr32.exe עעļȱٱļ𻵣ýܻ̿ʧܡ  

ʹ Depends.exe ȷעעļ Microsoft Windows 98 Դ߰  Microsoft Windows NT 4.0 Դ߰ ֹ֧жṩ Depends.exe 
247024 Tools Included with the Microsoft Windows 98 Resource Kit  